package com.likels.smartcalendar;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.likels.smartcalendar.calendarview.CalendarView;

public class MainActivity extends AppCompatActivity {

    private CalendarView calendarView;
    private final View.OnClickListener mClickListener=new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            int id=view.getId();
            if (id==R.id.speech){
                startDemo();
            }
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initViews();
    }

    private void initViews(){
        findViewById(R.id.speech).setOnClickListener(mClickListener);
    }

    private void startDemo(){
        Intent intent=new Intent(this, com.likels.smartcalendar.speech.iflytek.voicedemo.MainActivity.class);
        startActivity(intent);
    }
}